package main

import (
	"scoce_estimate/controller"

	"github.com/gin-gonic/gin"
)

func main() {

	controller.Process()

	r := gin.Default()

	r.LoadHTMLFiles("view/home.html", "view/query.html", "view/query_error.html")
	r.GET("/", controller.HomePage)
	r.GET("/query", controller.QueryPage)
	r.Run(":8080") // listen and serve on 0.0.0.0:8080
}
